<template>
	<view>
		<menuBox :menuInfo = "menuInfo"></menuBox>
	</view>
</template>

<script>
	import menuBox from "@/wxcomponents/commonLayout/menu";
	import termSelect from '@/wxcomponents/termSelect/index.vue'
	import achievementMixins from './achievementMixins.js';
	export default {
		mixins: [achievementMixins],
		components: {
			termSelect,
			menuBox
		},
		data() {
			return {
				selectItem: '',
				courseCode: '',
				menuInfo: {
					base:{
						menuProp:[
							"name"
						]
					},
					list:[]
				}
			}
		},
		methods: {
			async fetchData() {
				let resp = await this.$http.get({
					url: '/stu/wechat/studentScore/listStu',
					data: {}
				});
				let list = resp.result.map(item => {
					let paramsStr = JSON.stringify(item)
					item.url = `/modules/achievement/studentReport?paramsStr=${paramsStr}`
					return item;
				})
				this.menuInfo.list = list;
			}
		},
		onLoad(option) {
			this.fetchData();
		},
		// mounted() {
			
		// 	this.fetchTerm();
		// }
	}
</script>

<style lang="scss" scoped>
	
</style>
